using System;
using System.Collections.Generic;


namespace Gfw.Models.Account
{
	[Serializable]
	public partial class ActUserDynamicaward: IEquatable<ActUserDynamicaward>
	{

		#region Private Members

		private string _id; 
		private string _userid; 
		private DateTime? _awarddate; 
		private int _tradetype; 
		private decimal _awardreceipt; 
		private decimal _awardactuality; 
		private decimal _taxation; 
		private string _awardserialno; 		
		#endregion

		#region Constructor

		public ActUserDynamicaward()
		{
			_id = String.Empty; 
			_userid = String.Empty; 
			_awarddate = null; 
			_tradetype = 0; 
			_awardreceipt = 0; 
			_awardactuality = 0; 
			_taxation = 0; 
			_awardserialno = String.Empty; 
		}
		#endregion // End of Default ( Empty ) Class Constuctor

		#region Public Properties
			
		public virtual string Id
		{
			get
			{ 
				return _id;
			}

			set	
			{	
				if( value == null )
					throw new ArgumentOutOfRangeException("Null value not allowed for Id", value, "null");
				
				if(  value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Id", value, value.ToString());
				
				_id = value;
			}
		}
			
		public virtual string Userid
		{
			get
			{ 
				return _userid;
			}

			set	
			{	
				if( value == null )
					throw new ArgumentOutOfRangeException("Null value not allowed for Userid", value, "null");
				
				if(  value.Length > 40)
					throw new ArgumentOutOfRangeException("Invalid value for Userid", value, value.ToString());
				
				_userid = value;
			}
		}
			
		public virtual DateTime? AwardDate
		{
			get
			{ 
				return _awarddate;
			}
			set
			{
				_awarddate = value;
			}

		}
			
		public virtual int TradeType
		{
			get
			{ 
				return _tradetype;
			}
			set
			{
				_tradetype = value;
			}

		}
			
		public virtual decimal AwardReceipt
		{
			get
			{ 
				return _awardreceipt;
			}
			set
			{
				_awardreceipt = value;
			}

		}
			
		public virtual decimal AwardActuality
		{
			get
			{ 
				return _awardactuality;
			}
			set
			{
				_awardactuality = value;
			}

		}
			
		public virtual decimal Taxation
		{
			get
			{ 
				return _taxation;
			}
			set
			{
				_taxation = value;
			}

		}
			
		public virtual string AwardSerialNo
		{
			get
			{ 
				return _awardserialno;
			}

			set	
			{	
				if(  value != null &&  value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for AwardSerialNo", value, value.ToString());
				
				_awardserialno = value;
			}
		}
			
				
		#endregion 

		#region Public Functions

		#endregion //Public Functions

		#region IEquatable members

		public virtual bool Equals(ActUserDynamicaward other)
		{
			if (other == this)
				return true;
		
			return ( other != null ) &&
				( this._id == other.Id );
				   
		}

		#endregion
		
	}
}
